/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

app.service('SampleDataService', function($q, $http){
    return {
        getData: getData
    }   
    
    function getData(dataSet) {
        
        var jsonPath = 'Apps/KeDesk/Rsrc/Js/Jsons/'+dataSet+'.json';
        var request = $http.get(jsonPath);
        
        request.cache = false;
        
        request.success(function(data) {
            
        });
        
        request.error(function(reason) {
            
        });
        
        return request;
        
    }
});